package com.devframe.sysbase.model.base;

import java.io.Serializable;

import com.devframe.sysbase.model.TSysHelpInfo;
import com.devframe.sysbase.model.TSysMenuStatic;


/**
 * This is an object that contains data related to the T_SYS_HELP_INFO table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_SYS_HELP_INFO"
 */

public abstract class BaseTSysHelpInfo  implements Serializable {

	public static String REF = "TSysHelpInfo";
	public static String PROP_LINK_HELP = "linkHelp";
	public static String PROP_MENU = "menu";
	public static String PROP_CREATE_TIME = "createTime";
	public static String PROP_KEY_WORD = "keyWord";
	public static String PROP_MEMO = "memo";
	public static String PROP_LAST_UPDATE_TIME = "lastUpdateTime";
	public static String PROP_ID = "id";


	// constructors
	public BaseTSysHelpInfo () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTSysHelpInfo (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String keyWord;
	private String memo;
	private java.lang.String createTime;
	private java.lang.String lastUpdateTime;

	// many to one
	private TSysMenuStatic menu;
	private TSysHelpInfo linkHelp;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid.hex"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: KEY_WORD
	 */
	public java.lang.String getKeyWord () {
		return keyWord;
	}

	/**
	 * Set the value related to the column: KEY_WORD
	 * @param keyWord the KEY_WORD value
	 */
	public void setKeyWord (java.lang.String keyWord) {
		this.keyWord = keyWord;
	}



	/**
	 * Return the value associated with the column: MEMO
	 */
	public String getMemo () {
		return memo;
	}

	/**
	 * Set the value related to the column: MEMO
	 * @param memo the MEMO value
	 */
	public void setMemo (String memo) {
		this.memo = memo;
	}



	/**
	 * Return the value associated with the column: CREATE_TIME
	 */
	public java.lang.String getCreateTime () {
		return createTime;
	}

	/**
	 * Set the value related to the column: CREATE_TIME
	 * @param createTime the CREATE_TIME value
	 */
	public void setCreateTime (java.lang.String createTime) {
		this.createTime = createTime;
	}



	/**
	 * Return the value associated with the column: LAST_UPDATE_TIME
	 */
	public java.lang.String getLastUpdateTime () {
		return lastUpdateTime;
	}

	/**
	 * Set the value related to the column: LAST_UPDATE_TIME
	 * @param lastUpdateTime the LAST_UPDATE_TIME value
	 */
	public void setLastUpdateTime (java.lang.String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}



	/**
	 * Return the value associated with the column: MENU_CODE
	 */
	public TSysMenuStatic getMenu () {
		return menu;
	}

	/**
	 * Set the value related to the column: MENU_CODE
	 * @param menu the MENU_CODE value
	 */
	public void setMenu (TSysMenuStatic menu) {
		this.menu = menu;
	}



	/**
	 * Return the value associated with the column: LINK_HELP_ID
	 */
	public TSysHelpInfo getLinkHelp () {
		return linkHelp;
	}

	/**
	 * Set the value related to the column: LINK_HELP_ID
	 * @param linkHelp the LINK_HELP_ID value
	 */
	public void setLinkHelp (TSysHelpInfo linkHelp) {
		this.linkHelp = linkHelp;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof TSysHelpInfo)) return false;
		else {
			TSysHelpInfo tSysHelpInfo = (TSysHelpInfo) obj;
			if (null == this.getId() || null == tSysHelpInfo.getId()) return false;
			else return (this.getId().equals(tSysHelpInfo.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}